package org.easy.amapweather;

import lombok.Data;

import java.util.List;

@Data
public class WeatherTemplate {
    private String key;
    private AmapWeatherClient client;

    public WeatherTemplate(String key, AmapWeatherClient client) {
        this.key = key;
        this.client = client;
    }

    public WeatherLive getNowWeather(String province, String city) {
        return client.getNowWeather(key, province, city);
    }

    public List<WeatherCasts> getForecastWeather(String province, String city) {
        return client.getFeatureWeather(key, province, city);
    }


}
